package com.woniuxy.driver.mapper;

import com.woniuxy.commons.entity.Driver;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author rmw
 * @date 2020/12/5 15:40
 */
@Mapper
@Repository
public interface DriverMapper {

    /**
     * 注册方法
     * @param driver
     * @return
     */
    @Insert("insert into t_driver values(#{did},#{number}," +
            "#{password},#{name},#{age}" +
            ",#{sex},#{card},#{phone}" +
            ",#{time},#{license},#{tid},#{dbid},#{balance})")
    public int register(Driver driver);
}
